<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p> <?php _e('Enter your password to view comments.'); ?> </p>
<?php return; endif; ?>

<?php if ( ( is_single() || is_page() ) && is_attachment() == false ) : ?>
<blockquote>
<h3 id="comments"><?php comments_number(__('No comments yet.'), __('1 Comment'), __('% Comments')); ?> </h3>
</blockquote>
<?php endif; ?>

<?php if ( $comments ) : ?>
    <?php $alt = 2; ?>
    <?php foreach ($comments as $comment) : ?>
        <div class="comment<?php if($alt%2){ echo ' comment-alt'; } ?>" id="comment-<?php comment_ID() ?>">
            <div class="comment_sizer"></div>
            <p class="commenter"><?php comment_author_link() ?> a dit, le <?php comment_date() ?> @ <?php comment_time() ?> <?php edit_comment_link('Editer',' &bull; ', ''); ?> :</p>
            <a href="http://fr.gravatar.com" target="new"><?php echo get_avatar( get_comment_author_email(), 50, '', 'Configurer votre image sur http://fr.gravatar.com' ); ?></a><?php comment_text(); ?>
            <div class="comment_sizer_clear"></div>
        </div>
    <?php 
    $alt ++;
    endforeach;
    ?>

<?php endif; ?>

<?php if ( ( is_single() || is_page() ) && is_attachment() == false ) : ?>
<div id="postcomment">
<blockquote>
<?php if ( comments_open() ) : ?>
    <h3>Lâchez vos com'</h3>
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
        <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
    <?php else : ?>
        <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
        <?php if ( $user_ID ) : ?>
            <p>
                Connect&eacute; en tant que <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>.
                <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Se d&eacute;connecter &raquo;</a>
            </p>
        <?php else : ?>
            <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
            <label for="author">Nom <?php if ($req) _e('(required)'); ?></label></p>
            <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
            <label for="email">Email (ne sera pas publi&eacute;) <?php if ($req) _e('(required)'); ?></label></p>
            <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
            <label for="url">Site</label></p>
        <?php endif; ?>

        <p><small>Vous pouvez utilisez les balises <strong>XHTML</strong> suivantes :&nbsp;<?php echo allowed_tags(); ?></small></p>
        <?php if (function_exists('SJB_outputSmilies')) { SJB_outputSmilies(); } ?>
        <p><textarea name="comment" id="comment" cols="65" rows="10" tabindex="4"></textarea></p>
        <p>
            <input name="submit" type="submit" id="submitbutton" tabindex="5" value="Envoyer" />
            <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
        </p>
        <?php do_action('comment_form', $post->ID); ?>
        </form>
    <?php endif; // If registration required and not logged in ?>

<?php else : // Comments are closed ?>
     <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
<?php endif; ?>
</blockquote>
</div>
<?php endif; ?>
